package com.ruoyi.cla.domain;

import com.ruoyi.article.domain.Article;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 分类表对象 cla
 * 
 * @author ruoyi
 * @date 2025-06-03
 */
public class Cla extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类id */
    private Long claid;

    /** 分类名 */
    @Excel(name = "分类名")
    private String claname;

    private List<Article> articleList;

    public List<Article> getArticleList(){
        return articleList;
    }

    private void setArticleList(List<Article> ArticleList){
        this.articleList = articleList;
    }


    public void setClaid(Long claid) 
    {
        this.claid = claid;
    }

    public Long getClaid() 
    {
        return claid;
    }
    public void setClaname(String claname) 
    {
        this.claname = claname;
    }

    public String getClaname() 
    {
        return claname;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("claid", getClaid())
            .append("claname", getClaname())
            .toString();
    }
}
